package Interface;




import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Guilherme
 */
public class ThreadLoading extends Thread {
   
    Inicial ini;
    
    public ThreadLoading(Inicial i)
    {
        ini = i;
    }
    
    
    public void run()
        {
        Loading load = new Loading();
        load.setVisible(true);
       
        try {
            Thread.sleep(5000);
            load.setVisible(false);
            ini.setVisible(true);
        } catch (InterruptedException ex) {
            Logger.getLogger(ThreadLoading.class.getName()).log(Level.SEVERE, null, ex);
        }
        }  
}
